package org.shoukaiseki.common.utils;

import com.alibaba.fastjson.JSONObject;

/**
 *
 **/
public final class SyncActionRequestBuilder {
    //别名
    private String aliasName = "mainSA";
    private String ownerName;
    private String beanName;
    private Object domain;

    private SyncActionRequestBuilder() {
    }


    public static SyncActionRequestBuilder aSyncActionRequest() {
        return new SyncActionRequestBuilder();
    }

    public SyncActionRequestBuilder aliasName(String aliasName) {
        this.aliasName = aliasName;
        return this;
    }

    public SyncActionRequestBuilder ownerName(String ownerName) {
        this.ownerName = ownerName;
        return this;
    }

    public SyncActionRequestBuilder beanName(String beanName) {
        this.beanName = beanName;
        return this;
    }

    public SyncActionRequestBuilder data(Object obj) {
        this.domain = obj;
        return this;
    }

    public SyncActionRequest build() {
        SyncActionRequest syncActionRequest = new SyncActionRequest();
        syncActionRequest.setAliasName(aliasName);
        syncActionRequest.setOwnerName(ownerName);
        syncActionRequest.setBeanName(beanName);
        syncActionRequest.setDomain(domain);
        return syncActionRequest;
    }
}
